@extends('user.base.index')

@section('content')
<h4 class="page-title">商品添加</h4>

<div class="block-area" id="multi-column">
                    <h3 class="block-title">multi-column</h3>
                    <form class="row form-columned" action="/admin/popular" role="form"  method="post">
                        <input type="hidden" name="_token" value="{{ csrf_token()}}">
                        <div class="col-md-4">
                        <select name="product_id">
                        @foreach($pr as $v)
                           产品: <option value="{{$v->id}}">{{$v->name}}</option>
                           @endforeach
                       </select>
                        </div>
                        
                         <div class="clearfix"></div>
                        <div class="col-md-4">
                            备注：<input type="text" name="bak"class="form-control input-sm m-b-10" placeholder="备注">
                        </div>
                        <div class="col-md-10">
                            <button type="submit" class="btn btn-sm">添加</button>
                        </div>
                       
                         
                    </form>
                    @if (count($errors) > 0)
                        <div class="alert alert-danger">
                        <ul>
                            @foreach ($errors->all() as $error)
                                <p>{{ $error }}</p>
                            @endforeach
                        </ul>
                    </div>
                @endif
                </div>
@stop